package service.cities;

/**
 * Created with IntelliJ IDEA.
 * User: Claudio "Dna" Bonesana
 * Date: 19.04.13
 * Time: 20:29
 */

public class CityByName extends City {

    private String name;

    public CityByName(String insertionName) {
        super(insertionName);
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getConnectionData(){
        return "" + getInsertionName();
    }
}
